<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>登录后台</title>
  <style class="cp-pen-styles">
body {
    background: radial-gradient(200% 100% at bottom center, #0070aa, #0b2570, #000035, #000);
    background: radial-gradient(220% 105% at top center, #000 10%, #000035 40%, #0b2570 65%, #0070aa);
    background-attachment: fixed;
    overflow: hidden;
  }

  @keyframes rotate {
    0% {
      transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(0);
    }
    100% {
      transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(-360deg);
    }
  }
  .stars {
    transform: perspective(500px);
    transform-style: preserve-3d;
    position: absolute;
    bottom: 0;
    perspective-origin: 50% 100%;
    left: 50%;
    animation: rotate 90s infinite linear;
  }

  .star {
    width: 2px;
    height: 2px;
    background: #F7F7B6;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0 -300px;
    transform: translate3d(0, 0, -300px);
    backface-visibility: hidden;
  }
  .kuan{
    margin-left:36%;
    text-align: center;
    margin-top: 10%;
    width:30%;
    height:400px;
    color: #fff;
    background: #000;
    border:1px solid #000;
    border-radius:10px;
    opacity: 0.4;
  }
  input{border-radius:4px;border:0px;}

  </style>
 </head>

 <body>
   <div id='dl' class='kuan'>
   <!--登录-->
     <div style='padding-top:50px;text-align:center;' >
	   <h3>欢迎登录</h3>
       <p>账号：<input type='text' name='zh' id='zh' style='height:20px;' v-model='json.admin'></p>
	   <p>密码：<input type='password' name='mm' id='mm' style='height:20px;' v-model='json.pass'></p>
     <p>验证码: <img id="captcha_img"  src='{:captcha_src()}' onclick='this.src="{:captcha_src()}?"+Math.random();'style="width:150px; height:30px;border:1px solid  #929292;" />
  </p>
  <P>请输入验证码：<br/><input type="text"   id='authcode' v-model='json.yzm'/></p>
	    <input type='submit' value='登录' style='padding:4px 20px;background: #6699cc;color: #fff;font-size:18px;' @click="getadmin()">
 	 </div>
   <div id="form"></div>
   </div>
   <div class="stars">

</div>
 <script src="/js/jquery.js"></script>
<script src='/js/vue/vue.js'></script>
<script src='/js/layer.js'></script>
<script src='/js/funclayer.js'></script>
<script src='/js/stopExecutionOnTimeout.js'></script>

 </body>
</html>
   <script>
      var str=new Vue({
  el: '#dl',
     data: {
        json:{
           admin:'',
           pass:'',
           yzm:''
        }
     },methods:{
        getadmin(){
          let self=this;
           $.ajax({
             url:'//xiaomishop.com/admin.php/index/login',
             type:'post',
             data:self.json,
             dataType:'json',
              success:function(res){
                 if(res.status=='ok'){
                      _.msg('登入成功！',1,1500);
                      setTimeout(function(){
                         location.href='admin.php/home';
                      },1600);
                 }else{
                    _.msg(res.error,7,1500);
                 }
             }
          });
        }
     }
});
   </script>
